package com.xiaobawang.knowledge.spider.forest;

import com.dtflys.forest.annotation.*;
import com.dtflys.forest.http.ForestResponse;
import com.xiaobawang.knowledge.spider.model.dto.GovernmentRuleListReqDTO;

import java.util.Map;

/**
 * @author 18101119
 * @description 对接 sap
 * @date 2024/3/21 17:42
 * @email songxinhang2023@e-chinalife.com
 * @id 18101119
 * @phone 13001321080
 */
@BaseRequest(
        // 域名
        baseURL = "${baseUrl.peopleBank.api}",
        // 请求头
        headers = {
                "Content-Type:application/json",
                "accept:*/*"
        }
)
public interface PeopleBankClient {

    /**
     * @return com.dtflys.forest.http.ForestResponse<java.lang.String>
     * @author synhard
     * @description 获取文件字节数组
     * @date 2025/3/28 16:45
     */
    @Get("{url}")
    byte[] getFileByteArray(@Var("url") String url);

    /**
     * @return com.dtflys.forest.http.ForestResponse<java.lang.String>
     * @author synhard
     * @description 获取html文本
     * @date 2025/3/28 16:45
     */
    @Get("{url}")
    String getHtml(@Var("url") String url);
}